libxl: Check whether a PCI device is assignable before assigning it do a domU
authorGianni Tedesco <gianni.tedesco@citrix.com>
Thu, 29 Jul 2010 17:52:33 +0000 (18:52 +0100)
committerGianni Tedesco <gianni.tedesco@citrix.com>
Thu, 29 Jul 2010 17:52:33 +0000 (18:52 +0100)
commit9becdd8ee96e8d2572b72a9b9c67a6e5c708971d
tree5e57f6f04d507e0bfd85ea60f5d4fca96c027e16
parenta1d3c13679e97658c98d46c030bb9e2e3bd55e66
libxl: Check whether a PCI device is assignable before assigning it do a domU

Implement a new libxl function libxl_device_pci_list_assignable. This is
used to implement the xl list-assignable-pci-devices command and part of
the implementation is used to make sure that PCI devices are not multiply
assigned to one or more domU's before doing the passthrough assignment.

The function libxl_device_pci_list changes to libxl_device_pci_list_assigned
due to a parameter change for consistency with pci_list_assignable.

Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.h
tools/libxl/libxl_internal.h
tools/libxl/libxl_pci.c
tools/libxl/xl.h
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_cmdtable.c